package com.deep.deepenterpise.common.enums;

import lombok.Getter;

/**
 * @author xyz
 * @version 1.0
 * @title DrSecurityEnum
 * @description
 * @create 2024/5/20 16:18
 */
@Getter
public enum DrSecurityEnum {
    NO(0),
    YES(1),
    ;

    private final Integer drType;

    DrSecurityEnum(Integer drType) {
        this.drType = drType;
    }


    public boolean compare(Integer type) {
        return this.drType.equals(type);
    }

    public boolean compare(DrSecurityEnum drTypeEnum) {
        return this.compare(drTypeEnum.getDrType());
    }
}
